﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using model;
using Bll;

public partial class deletea : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        int ano =Convert.ToInt32( Request.Params["ano"]);
        ApplicationBll bll = new ApplicationBll();
        try
        {
            bll.Delete(ano);
            if (Session["usergroup"].ToString() != "enterprise")
            {
                Response.Write("<script>alert('删除成功！');location.href='Applictioncfg.aspx';</script>");
            }
            Response.Write("<script>alert('删除成功！');location.href='EA.aspx';</script>");
        }
        catch (Exception ex)
        {
            string js = "<script>alert('" + ex.Message + "');</script>";
            Response.Write(js);
        }
    }
}